<?php

class Core_Form_Admincp_Form_Item extends Nuo_Form
{
	function init()
	{$this->isAsync();
		$this -> setTitle('Edit Item');

		$this -> addChild('text', 'item_label', array('label' => 'Label', ));

		$this -> addChild('text', 'parent_id', array(
			'label' => 'Parent ID',
			'value' => 0,
		));

		$this -> addChild('text', 'item_key', array('label' => 'Key', ));

		$this -> addChild('select', 'element_id', array(
			'label' => 'Element',
			'multiOptions' => Nuo::getTable('core/html/element') -> getMultiOptions(FALSE),
		));

		$this -> addChild('select', 'data_id', array(
			'label' => 'Data',
			'multiOptions' => Nuo::getTable('core/html/data') -> getMultiOptions(array('' => '')),
		));

		$this -> addChild('text', 'sort_order', array(
			'label' => 'Sort Order',
			'value' => '99'
		));

		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Lock',
			'value' => 1
		));

		$this -> addChild('yesno', 'is_enabled', array(
			'label' => 'Enabled',
			'value' => 0
		));

		$this -> addChild('yesno', 'is_custom', array(
			'label' => 'Custom',
			'value' => 0
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
